package com.msb.servicedriveuser.feign;

import com.msb.commons.response.ResponseResult;
import com.msb.commons.response.TerminalResponse;
import com.msb.commons.response.TrackResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Author: chshh
 * @version: 1.0
 */
@FeignClient("service-map")
public interface TerminalClient {

    @PostMapping(value = "/terminal/add")
    public ResponseResult<TerminalResponse> addTerminal(@RequestParam("name") String name,@RequestParam("desc") String desc);

    @PostMapping(value = "/track/add")
    public ResponseResult<TrackResponse> addTrack(@RequestParam("tid") String tid);
}
